.page {
  width: 100vw;
  height: 100vh;
  max-width: 650px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  z-index: 1;
  background: url('../images/bg.jpg') no-repeat;
  background-size: 100% 100%;
}

/* common */
.container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* soundBtn */
.soundBtn {
  position: fixed;
  top: 1.5rem;
  right: .8rem;
  z-index: 999;
  width: 2rem;
}

.soundBtn.play {
  -webkit-animation: sound 1.5s linear infinite;
  animation: sound 1.5s linear infinite;
}

@keyframes sound {
  0% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(10deg);
  }

  50% {
    transform: rotate(0);
  }

  75% {
    transform: rotate(-10deg);
  }

  100% {
    transform: rotate(0);
  }
}

/* loading */
.loading {
  background: #3265D8;
}

.loading .load-pic {
  width: 1.9375rem;
}

.loading .loading-progress {
  font-size: 18px;
  color: #fff;
  margin-top: .625rem;
}

/* home */
.home {
  display: none;
  text-align: center;
}

.home .center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.home .title {
  width: 12.9375rem;
  max-width: 60%;
  top: -16vh;
  -webkit-animation: moveDown 1s ease-in-out;
  animation: moveDown 1s ease-in-out;
  animation-fill-mode: forwards;
}

.home .start {
  width: 14.25rem;
  max-width: 50%;
  bottom: -30vh;
  -webkit-animation: moveUp 1s ease-in-out;
  animation: moveUp 1s ease-in-out;
  animation-fill-mode: forwards;
}

.home .desc {
  bottom: 5vh;
  color: #102b6a;
  font-size: 18px;
  text-align: center;
}

.home .desc p {
  display: block;
  white-space: nowrap;
  line-height: 1.5;
  -webkit-animation: textAni 1s ease-in-out;
  animation: textAni 1s ease-in-out;
  animation-fill-mode: forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.home .desc p:nth-child(2) {
  animation-delay: 1s;
}

.home .desc p:nth-child(3) {
  animation-delay: 1.5s;
}

.home .desc p:not(:nth-child(3)) {
  font-weight: 600;
  color: #000;
}

@keyframes moveDown {
  100% {
    top: 16vh;
  }
}

@keyframes moveUp {
  100% {
    bottom: 20vh;
  }
}

@keyframes textAni {
  0% {
    transform: translateY(200%);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ques */
.ques {
  display: none;
}

.ques .ques-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.ques .test {
  display: none;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  background: url('../images/subject.png') no-repeat center center;
  background-size: contain;
}

.ques .test .ques-tit {
  color: #222;
  opacity: 0;
}

.ques .test .option {
  opacity: 0;
  width: 13rem;
  max-width: 100%;
  height: 2.75rem;
  line-height: 2.75rem;
  margin: .625rem auto;
  background: url('../images/item.png') no-repeat;
  background-size: 100% 100%;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.ques .test .option.long {
  height: 3.2rem;
  line-height: 1.45;
  font-size: 15px;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

.popbounce {
  -webkit-animation: popbounce .2s;
  animation: popbounce .2s;
  animation-fill-mode: forwards;
}

@keyframes popbounce {
  0% {
    opacity: 0;
    margin-bottom: -5px;
  }

  100% {
    opacity: 1;
    margin-bottom: 0;
  }
}

.ques .test .option .judge {
  display: none;
  width: 2rem;
  height: 2rem;
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
}

.ques .test .option.truth .judge {
  background: url('../images/truth.png') no-repeat;
  background-size: 100% 100%;
}

.ques .test .option.error .judge {
  background: url('../images/error.png') no-repeat;
  background-size: 100% 100%;
}

.ques .test .analyze {
  display: none;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.ques .test .analyze .ana-text {
  width: 100%;
  height: 75%;
  margin-top: 10%;
  padding: 28% 20% 30% 20%;
  box-sizing: border-box;
  background: url('../images/msg_box.png') no-repeat;
  background-size: 110% auto;
}

.ques .test .analyze .ana-text p:nth-child(1) {
  font-weight: 600;
}

.ques .test .analyze .ana-next {
  width: 8rem;
  height: 2rem;
  line-height: 2rem;
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  text-align: center;
  background: url('../images/btn.png') no-repeat;
  background-size: cover;
  color: #fff;
}

/* result */
.result {
  display: none;
}

.result .result-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.result .result-content .result-box {
  width: 100vw;
  height: 80vh;
  margin-top: 5vh;
  padding: 20% 16%;
  box-sizing: border-box;
  background: url('../images/page.png') no-repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result .result-content .result-box .userinfo img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: 0 0 4px #ccc;
}

.result .result-content .result-box .userinfo p {
  color: #666;
  text-align: center;
  margin-bottom: .3rem;
}

.result .result-content .result-box .r-success,
.result .result-content .result-box .r-msg {
  width: 80%;
  margin-bottom: .5rem;
}

.result .result-content .result-box .r-txt {
  text-align: center;
  line-height: 2;
  margin-bottom: 0.5rem;
}

.result .result-content .result-box .r-btn {
  display: flex;
  justify-content: space-between;
}

.result .result-content .result-box .r-btn div {
  width: 5.5rem;
  height: 2rem;
  line-height: 1.8rem;
  margin: 0 0.5rem;
  background: url('../images/item.png') no-repeat;
  background-size: 100% 100%;
  font-size: 14px;
  color: #333;
  font-weight: 600;
  text-align: center;
}

.ad {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
}

.ad img {
  width: 100%;
  max-height: 15vh;
}

/* share */
.share {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.share .arrow {
  position: absolute;
  -webkit-animation: arrowMove 3s linear infinite;
  animation: arrowMove 3s linear infinite;
}

@keyframes arrowMove {
  0% {
    right: 60%;
    top: 50%;
    transform: rotate(180deg) translate(-50%, -50%);
  }

  100% {
    right: 10%;
    top: 0%;
    transform: rotate(180deg) translate(-50%, -50%);
  }
}

/* 适配 */
@media all and (max-height: 650px) {
  .ques .test {
    padding: 10vh 13vw;
  }

  .ques .test .ques-tit {
    font-size: 14px;
  }
}

@media all and (min-height: 650px) {
  .ques .test {
    padding: 10vh 10vw;
  }

  .ques .test .ques-tit {
    font-size: 16px;
  }
}

@media all and (min-height: 750px) {
  .ques .test {
    padding: 16vh 10vw;
  }

  .ques .test .ques-tit {
    font-size: 18px;
  }
}

@media all and (min-height: 900px) {
  .ques .test {
    padding: 16vh 9vw;
  }

  .ques .test .ques-tit {
    font-size: 24px;
  }
}